package com.example.register1.mapper;

import com.example.register1.domin.Detail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;

@Mapper
public interface DetailMapper {


    Integer selectByNameAndDate(String name, LocalDate localDateMin,LocalDate localDateMinPlus);

    @Select("select * from tb_chapter where id_chapter = #{endChapter}")
    Detail selectDetail(Integer endChapter);

}
